<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>

<div class="center">
	<s:url action="view" namespace="/home" var="homeUrl" />
	<s:url action="list" namespace="/timer" var="timerUrl" />
	<s:url action="list" namespace="/switches" var="settingUrl" />
	<s:url action="list" namespace="/systemUser" var="systemUserUrl" />

	<ul class="nav nav-tabs">
		<s:if test="%{!getSessionUserVariable().getUserType().equals('ADMIN')}">
			<li id="homeTab"><s:a href="%{#homeUrl}" class="disabled">
					<s:text name="global.menu.home" />
				</s:a></li>
			<li id="timerTab"><s:a href="%{#timerUrl}">
					<s:text name="global.menu.timer" />
				</s:a></li>
			<li id="settingTab"><s:a href="%{#settingUrl}">
					<s:text name="global.menu.setting" />
				</s:a></li>
		</s:if>
		<s:if test="%{getSessionUserVariable().getUserType().equals('ADMIN')}">
			<li id="systemUserTab"><s:a href="%{#systemUserUrl}">
					<s:text name="global.menu.systemuser" />
				</s:a></li>
		</s:if>
	</ul>
</div>